package com.example.myproject.patternmodel.strategy;

import com.example.myproject.patternmodel.strategy.annotation.TotalValidRegion;

/**
 * Created by xi on 2018/8/14.
 */
@TotalValidRegion(min=3000)
class Vip implements CalPrice{
    //这里可以疯转一个算法，根据打折算法
    public Double calPrice(Double originalPrice) {
        return originalPrice * 0.8;
    }
}

